package com.cdd.eduservice.client;


import com.cdd.commonutils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(name = "service-vod", fallback = VodClientThrowMessage.class)
@Component
public interface VodClient {
    @DeleteMapping("/eduvod/video/deleteVod/{vodId}")
    public R deleteVod(@PathVariable("vodId") String vodId);

    @DeleteMapping("/eduvod/video/deleteVod-batch")
    public R deleteMoreVod(@RequestParam("vodIds") List<String> vodIds);
}
